import java.awt.*;
import java.awt.event.*;
import javax.swing.WindowConstants;

public class HMusicWrapper extends Frame {

    HMusic hm;

    public HMusicWrapper() {
	constructWindow();
    }
    
    private void constructWindow() {
	addWindowListener(new WindowAdapter() {
		public void windowClosing(WindowEvent e) {
		    System.exit(0);
		}
	    });

	setLayout(new BorderLayout());
	setTitle("HMusic");

	
	hm = new HMusic();
	hm.init();

	setResizable(false);
	setMinimumSize(new Dimension(hm.getWidth(),
				     hm.getHeight()));
	setPreferredSize(new Dimension(hm.getWidth(),
				       hm.getHeight()));

	add(hm, BorderLayout.CENTER);
    }

    public static void main(String[] args) {
	java.awt.EventQueue.invokeLater(new Runnable() {
		public void run() {
		    HMusicWrapper hmw = new HMusicWrapper();
		    hmw.setVisible(true);
		}
	    });
    }
    
}